package com.dog.basics.bean.dto.admin.common;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 引导页和启动页
 * </p>
 *
 * @author wph
 * @since 2020-05-27
 */
@Data
public class GuidePageAddDto implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空")
    @ApiModelProperty(value = "标题", dataType = "String", required = true)
    @Size(min = 1,max = 32,message = "标题不正确(1-32)")
    private String title;

    /**
     * 类型0:引导页  1:启动页
     */
    @NotNull(message = "类型不能为空")
    @ApiModelProperty(value = "类型", dataType = "Integer", required = true)
    @Min(value = 0, message = "类型只能是:(0引导页 1启动页)")
    @Max(value = 1, message = "类型只能是:(0引导页 1启动页)")
    private Integer type;

    /**
     * 引导页启动页类型0:图片  1:视频
     */
    @NotNull(message = "引导页启动页类型不能为空")
    @ApiModelProperty(value = "引导页启动页类型", dataType = "Integer", required = true)
    @Min(value = 0, message = "引导页启动页类型只能是:(0图片 1视频)")
    @Max(value = 1, message = "引导页启动页类型只能是:(0图片 1视频)")
    private Integer guideType;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空")
    @ApiModelProperty(value = "描述", dataType = "String", required = true)
    @Size(min = 1,max = 255,message = "标题不正确(1-255)")
    private String description;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址", dataType = "String", required = false)
    private String imgUrl;

    /**
     * 视频地址
     */
    @ApiModelProperty(value = "视频地址", dataType = "String", required = false)
    private String vedioUrl;

    /**
     * 轮播时间(秒)
     */
    @NotNull(message = "轮播时间(秒)不能为空")
    @ApiModelProperty(value = "轮播时间(秒)", dataType = "BigDecimal", required = true)
    private BigDecimal time;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    @ApiModelProperty(value = "排序", dataType = "Integer", required = true)
    private Integer sort;




}
